// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';// 引入饿了吗组件
import 'element-ui/lib/theme-chalk/index.css';// 引入饿了吗样式
import api from './utils/api'//引入api
import store from './store/idnex'//引入store
import dnav from "./components/dnav.vue"//动态导航
import JsonExcel from 'vue-json-excel'//引入excel表格插件
Vue.component('downloadExcel', JsonExcel)

Vue.component("dnav",dnav)
Vue.prototype.$api=api
Vue.use(ElementUI)
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,//注册
  components: { App },
  template: '<App/>'
})
